﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using EkStudio.com.bean.xml.Unit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.BillMultiple
{
    public class BillMultipleParamItem : BillUiFormatNode
    {

        private string key = BeanUtil.FIELD_KEY_VALUE;
        private string caption = BeanUtil.FIELD_CAPTION_VALUE;
        private bool fnNotNull = false;
        private string languageTexts = "";
        private string dataType = BeanUtil.FIELD_DATATYPE_VALUE;
        private string defaultValue = "";

        [Xml]
        public string Key
        {
            get { return key; }

            set { key = value; }
        }
        [Xml]
        public string Caption
        {
            get { return caption; }
            set { caption = value; }
        }
        [Xml]
        public bool FnNotNull
        {
            get { return fnNotNull; }
            set { fnNotNull = value; }
        }
        [Xml]
        public string LanguageTexts
        {
            get { return languageTexts; }
            set { languageTexts = value; }
        }
        [Xml]
        public string DataType
        {
            get { return dataType; }
            set { dataType = value; }
        }
        [Xml("default")]
        public string DefaultValue
        {
            get { return defaultValue; }
            set { defaultValue = value; }
        }

        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
            }
        }

        

        public object Clone()
        {
            BillMultipleParamItem clone = new BillMultipleParamItem();
            clone.Key = key;
            clone.Caption = caption;
            clone.FnNotNull = fnNotNull;
            clone.DataType = dataType;
            clone.DefaultValue = defaultValue;
            return clone;
        }
    }
}
